package com.ahu.utils;

import org.junit.Test;

import java.util.UUID;

/**
 * Author: Zhang Dongwei
 * Date: 2022/5/2 9:48
 */
@SuppressWarnings("all") // 抑制警告
public class IDUtils {
    public static String getId(){
        return UUID.randomUUID().toString().replace(".","_");
    }

    @Test
    public void test(){
        System.out.println(IDUtils.getId());
    }
}
